<script setup lang="ts">
import { ref } from "vue";

import { VueEditor } from "./monaco";
import data from "./data.vue?raw";

const content = ref(data);

setInterval(() => console.log("当前编辑器的内容：", content.value), 5000);
</script>

<template>
  <div class="app">
    <VueEditor v-model="content" />
  </div>
</template>

<style scoped>
.app {
  width: 100vw;
  height: 100vh;
}
</style>
